package com.testes.umov.model;

import java.util.Date;

import com.testes.umov.enums.*;

public class TestData {
	private float initialCharge;
	private float finalCharge;
	private float spentCharge;
	private long spentTime;
	private int operations;
	private long dataLenght;
	private String description;
	private OperationType type;
	private PerformanceMeasure measure;
	
	public TestData(String _description, OperationType _type, PerformanceMeasure _measure) {
		this.description = _description;
		this.operations = 1;
		this.type = _type;
		this.measure = _measure;
	}
	
	public TestData(String _description, int _operations, OperationType _type, PerformanceMeasure _measure) {
		this(_description, _type, _measure);
		this.operations = _operations;
	}
	
	public float averageSpentChargePerOperation() {
		return this.spentCharge / (float)this.operations;
	}

	public float getInitialCharge() {
		return initialCharge;
	}

	public void setInitialCharge(float initialCharge) {
		this.initialCharge = initialCharge;
	}

	public float getFinalCharge() {
		return finalCharge;
	}

	public void setFinalCharge(float finalCharge) {
		this.finalCharge = finalCharge;
	}

	public float getSpentCharge() {
		return spentCharge;
	}

	public void setSpentCharge(float spentCharge) {
		this.spentCharge = spentCharge;
	}

	public int getOperations() {
		return operations;
	}

	public void setOperations(int operations) {
		this.operations = operations;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public OperationType getType() {
		return type;
	}

	public void setType(OperationType type) {
		this.type = type;
	}

	public PerformanceMeasure getMeasure() {
		return measure;
	}

	public void setMeasure(PerformanceMeasure measure) {
		this.measure = measure;
	}

	public long getDataLenght() {
		return dataLenght;
	}

	public void setDataLenght(long dataLenght) {
		this.dataLenght = dataLenght;
	}

	public long getSpentTime() {
		return spentTime;
	}

	public void setSpentTime(long spentTime) {
		this.spentTime = spentTime;
	}
	
}

